using NewFormatProject.Infrastructure.EFCore;
using NewFormatProject.Infrastructure.Dto.Responses.Objects;
namespace NewFormatProject.Server.Instances.Extends.Entitys
{
	public static class ActionLogsExtend
{
		public static ResponseActionLogsDto ToResponseDto(this ActionLogs entity)
{			return new ResponseActionLogsDto
			{
				id = entity.AlId,
				message = entity.AlMessage,
				requestParams = entity.AlRequestParams,
				requestUrl = entity.AlRequestUrl,
				requestMethod = entity.AlRequestMethod,
				ip = entity.AlIp,
				affectedRows = entity.AlAffectedRows,
				userId = entity.AlUserId,
				createTime = entity.AlCreateTime,
			};
		}
	}
}
